-
-
Notifications
You must be signed in to change notification settings - Fork 195
Manchester | ITP-May-2025 | Chukwuemeke Ajuebor | Module-Structuring-and-Testing-Data | Sprint-1 #603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Manchester | ITP-May-2025 | Chukwuemeke Ajuebor | Module-Structuring-and-Testing-Data | Sprint-1 #603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on this sprint. I've left some comments in some files for you to answer before completing this sprint.
@@ -12,11 +12,14 @@ console.log(`The percentage change is ${percentageChange}`); | |||
// Read the code and then answer the questions below | |||
|
|||
// a) How many function calls are there in this file? Write down all the lines where a function call is made | |||
|
|||
// There are three; Ln4, Ln5, Ln10. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 lines with function calls on them. How many function calls are there in total?
|
||
// b) How many function calls are there? | ||
// There is no function call. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you using to view the result variable? Are you sure there are 0 function calls?
|
||
// e) What do you think the variable result represents? Can you think of a better name for this variable? | ||
//It represents the movie duration in the format; HH:MM:SS. A good name would be "movieduration" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think that "movieduration" offers a clear enough difference to the earlier "movieLength" variable?
|
||
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer | ||
// Yes it will as long as the minimum movielength is 1 sec. The divided operand will always be returned if the dividing operand can go into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you think of any cases where the output might not look correct?
No description provided.